/**
 * 
 */
package com.moon.jy;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

/**
 * 登录
 * 
 * @author paul.gaol
 * @date 2014-3-9
 */
public class LoginActivity extends AbstractActivity {
    private EditText loginId;
    private EditText password;
    private Button loginBtn;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.login);
        
        loginId = (EditText) findViewById(R.id.editLoginAccount);
        password = (EditText) findViewById(R.id.editLoginPassword);
        loginBtn = (Button) findViewById(R.id.buttonLogin);
        loginBtn.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(LoginActivity.this,MainActivity.class);
                startActivity(intent);
                
            }
        });
        
        
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        //getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
}
